package com.itheima01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2022-02-09
 * Time: 18:19
 */
public class Overloading_of_function {
    public static void main(String[] args) {
        System.out.println(compare(10,20));
        System.out.println(compare((byte)10,(byte)20));
        System.out.println(compare((short)10,(short)10));
        System.out.println(compare(10L,20L));
    }

    public static boolean compare(int a,int b){
        return a==b;
    }
    public static boolean compare(byte a,byte b){
        return a==b;
    }
    public static boolean compare(short a,short b){
        return a==b;
    }
    public static boolean compare(long a,long b){
        return a==b;
    }
}
